package com.apartment.own.service;

import java.util.List;

import com.apartment.common.core.page.PageDomain;
import com.apartment.own.domain.OwnSysWorkOrder;
import com.apartment.own.request.workorder.OwnSysWorkOrderQuery;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 维修订单Service接口
 * 
 * @author @Dog_E
 * @date 2020-08-28
 */
public interface IOwnSysWorkOrderService extends IService<OwnSysWorkOrder>
{
    /**
     * 查询维修订单
     * 
     * @param id 维修订单ID
     * @return 维修订单
     */
    public OwnSysWorkOrder selectOwnSysWorkOrderById(String id);

    /**
     * 查询维修订单列表
     * 
     * @param ownSysWorkOrder 维修订单
     * @return 维修订单集合
     */
    public List<OwnSysWorkOrder> selectOwnSysWorkOrderList(OwnSysWorkOrderQuery ownSysWorkOrder);

    /**
     * 新增维修订单
     * 
     * @param ownSysWorkOrder 维修订单
     * @return 结果
     */
    public int insertOwnSysWorkOrder(OwnSysWorkOrderQuery ownSysWorkOrder);

    /**
     * 修改维修订单
     * 
     * @param ownSysWorkOrder 维修订单
     * @return 结果
     */
    public int updateOwnSysWorkOrder(OwnSysWorkOrder ownSysWorkOrder);

    /**
     * 批量删除维修订单
     * 
     * @param ids 需要删除的维修订单ID
     * @return 结果
     */
    public int deleteOwnSysWorkOrderByIds(String[] ids);

    /**
     * 删除维修订单信息
     * 
     * @param id 维修订单ID
     * @return 结果
     */
    public int deleteOwnSysWorkOrderById(String id);
}
